
body{
	font-family: "Microsoft Yahei";
}

/*绝对定位，上下不动，中间来动，把整个容器的定位全部设为0,是一种技巧*/
.main_warp{
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: gold;
}

.header{
	height: 50px;
	background-color: #37ab40;
	position: relative;
}

.header .logo{
	width: 89px;
	height: 36px;
	 /*因为a是行内元素，所以需要转化为块元素才能设置居中*/
	display: block;
	margin: 7px auto 0;
}

/*要使得图片等比缩放，只要设置一边宽100%就可以了*/
.header .logo img{
	width: 100%;
}

.header .search{
	position: absolute;
	right: 15px;
	top: 12px; 
	width: 27px;
	height: 27px;
	background:url(../images/icons.png) left top no-repeat;
	background-size: 60px 840px;
}

.center_wrap{
	position: absolute;
	left: 0;
	right: 0;
	top: 50px;
	bottom: 50px;
	background-color: #efefef;
	/*把一个hidden变成两部分，左右滚动隐藏*/
	overflow-x: hidden;
	/*上下自动出现滚动*/
	overflow-y: auto;
}

/*图片会等比缩放*/
.slide img{
	width: 100%;
}

.menu{
	height: 173px;
	background-color: #fff;
	margin-top: 10px;
	padding-top: 12px;
}

/*流体布局*/
.menu li{
	width: 25%;
	height: 81px;
	float: left;
}

.menu li a{
	display: block;
	width: 56px;
	height: 55px;
	background: url(../images/icons.png) -1px -60px no-repeat;
	background-size: 60px 840px;
	margin:0 auto;
}

.menu li h2{
	height: 26px;
	font: bold 13px/26px "Microsoft";
	text-align: center;
	color: #666;
}

.menu li:nth-child(2) a{
	background-position: left -120px;
}

.menu li:nth-child(3) a{
	background-position: left -180px;
}

.menu li:nth-child(4) a{
	background-position: left -240px;
}

.menu li:nth-child(5) a{
	background-position: left -300px;
}

.menu li:nth-child(6) a{
	background-position: left -360px;
}

.menu li:nth-child(7) a{
	background-position: left -420px;
}

.menu li:nth-child(8) a{
	background-position: left -480px;
}

/*定位过的元素会转成行内块，如果不定义宽度就等于内容的宽度*/
.footer{
	position: absolute;
	width: 100%;
	height: 50px;
	background-color: #fff;
	left: 0;
	bottom: 0;
}

